package com.java.action;

import java.util.Arrays;

import com.java.service.IRoleService;
import com.opensymphony.xwork2.ActionSupport;

public class RoleMappingAction extends ActionSupport{
	
	private IRoleService roleservice;
	private String id;
	private int type1;
	private int type2;
	private int type3;
	private int type4;
	private int type5;
	private int message=1;
	
	
	public int getMessage() {
		return message;
	}


	public String execute(){
		
		int []type = new int[5];
		type[0]=type1;
		type[1]=type2;
		type[2]=type3;
		type[3]=type4;
		type[4]=type5;
		System.out.println(Arrays.toString(type));
		roleservice.mappingLog(id, type);
		
		return SUCCESS;
	}


	public void setRoleservice(IRoleService roleservice) {
		this.roleservice = roleservice;
	}


	public void setId(String id) {
		this.id = id;
	}


	public void setType1(int type1) {
		this.type1 = type1;
	}


	public void setType2(int type2) {
		this.type2 = type2;
	}


	public void setType3(int type3) {
		this.type3 = type3;
	}


	public void setType4(int type4) {
		this.type4 = type4;
	}


	public void setType5(int type5) {
		this.type5 = type5;
	}

}
